<template>
  <div ref="myChart" style="height: 400px" />
</template>

<script>
// 引入 Echarts 图表
import * as echarts from 'echarts'
export default {
  mounted() {
    // 初始化
    const myChart = echarts.init(this.$refs.myChart)
    // 开始绘图
    const option = {
      textStyle: {
        fontSize: 16
      },
      radar: {
        // shape: 'circle',
        indicator: [
          { name: '工作效率', max: 100 },
          { name: '考勤', max: 100 },
          { name: '积极性', max: 100 },
          { name: '帮助同事', max: 100 },
          { name: '自主学习', max: 100 },
          { name: '正确率', max: 100 }
        ]
      },
      series: [
        {
          name: 'Budget vs spending',
          type: 'radar',
          data: [
            {
              value: [42, 30, 20, 35, 50, 18],
              name: 'Allocated Budget'
            },
            {
              value: [5, 14, 28, 26, 42, 21],
              name: 'Actual Spending'
            }
          ]
        }
      ]
    }

    myChart.setOption(option)
  }
}
</script>

<style>

</style>
